package com.bb.blog.security.constant;

/**
 * 授权方式枚举
 */
public enum GrantTypeEnum {
    /**
     * 授权码
     */
    AUTHORIZATION_CODE("authorization_code"),
    /**
     * 隐藏式
     */
    IMPLICIT("implicit"),
    /**
     * 密码式
     */
    PASSWORD("password"),
    /**
     * 客户端凭证
     */
    CLIENT_CREDENTIALS("client_credentials");

    /**
     * 授权方式代码
     */
    String grantType;

    GrantTypeEnum(String grantType) {
        this.grantType = grantType;
    }

    public String getGrantType() {
        return grantType;
    }

    public void setGrantType(String grantType) {
        this.grantType = grantType;
    }}
